package com.lanou3g.ptp.attendance.mapper;

import com.lanou3g.ptp.entity.Attendance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;


@Mapper

public interface AttendanceMapper {

     List<Attendance> addAttentInfor(Attendance attendance);

     List<Attendance> findByStudentId(@Param("studentId") long  studentId);
     void updateByStudentId(@Param("studentId") long studentId, @Param("attendance") Attendance attendance);
     void deleteByStudentId(long studentId);

     List<Attendance> findSignTime(@Param("studentId") long studentId,@Param("signtime") String signTime);

     List<Attendance> findStudentTask(@Param("studentId") long studentId,@Param("taskId") long taskId);

     List<Attendance> findAll();

     List<Attendance> findByTaskId(long taskId);

     List<Attendance> findAll1();

    Integer findByDate(Long studentId,Date startDate, Date endDate);

     List<Attendance> findByDateId(Date startDate,Date endDate);

     List<Attendance> findByStudentIdAndDate(long studentId, Date startDate, Date overDate);
}
